﻿@model eShop.Web.Admin.Models.SearchWordStatListModel

@section header{
    <title>搜索分析</title>
    <link type="text/css" rel="stylesheet" href="/administration/css/site.css" />
    <link type="text/css" rel="stylesheet" href="/administration/css/style.css" />
    <script type="text/javascript" src="/administration/scripts/jquery.js"></script>
    <script type="text/javascript" src="/administration/scripts/showlist.js"></script>
    <script type="text/javascript">
        $(function () {
            $('.tablelist tbody tr:odd').addClass('odd');
        });
    </script>
}

@section body{
    <h1 class="rightH1">
        报表统计 &gt;&gt; 搜索分析
        <div class="right">
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </h1>
    @using (Html.BeginForm("SearchWordStatList", "Stat"))
    {
        <div class="dataListSearch">
            <table height="32">
                <tbody>
                    <tr>
                        <td width="35"><img id="searchImg" src="/administration/images/search1.gif" /></td>
                        <td>
                            搜索词：
                        </td>
                        <td width="130">
                            @Html.TextBox("Word", Model.Word, new { height = "18" })
                        </td>
                        <td>
                            <input id="SearchWord" name="SearchWord" type="image" class="searchBut submit" src="/administration/images/s.jpg" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>


        <div style="padding-left:15px;">
            <table class="tablelist">
                <thead>
                    <tr>
                        <th align="left">搜索词</th>
                        <th width="120" align="center">搜索次数</th>
                        <th width="160" align="left">最后搜索时间</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (DataRow row in Model.SearchWordStatList.Rows)
                    {
                        <tr>
                            <td>@row["word"]</td>
                            <td align="center">@row["totaltimes"]</td>
                            <td>@row["lastsearchtime"]</td>
                        </tr>
                    }
                </tbody>
            </table>
        </div>
        <div class="dataListEdit">
            <div class="page">
                @Html.AdminPager(Model.PageModel)
            </div>
        </div>
    }
}